package main

import (
	"flag"
	"gitee.com/goxiang2/server/lib/lib_rpc"
	_ "gitee.com/goxiang2/server/service/gate"
	_ "gitee.com/goxiang2/server/service/login"
)

var name = flag.String("n", "", "server port name")

func main() {
	flag.Parse()

	if *name == "" {
		flag.Usage()
		return
	}

	//没有使用启动master模块，手动注册消息路径
	lib_rpc.AddServiceMethod(10001, "Login.Login")
	//rpc节点服务
	lib_rpc.InitNode(nil, *name)
}
